package edu.sctu.zhengsenwen.month201506.day20150603;

/**
* Created by user15 on 2015/6/3.
*/
public class MetroMonitor {

    private String thiefAction = "偷东西";

    private Passenger passengers;

    MetroMonitor(Passenger passengers){

        this.passengers = passengers;

    }


    public void callPolice(){

        if(passengers.getThief()){

            if(passengers.getThiefAction().equals(thiefAction)){

                System.out.println("有人在偷东西！赶快报警！");
            }else{

                System.out.println("继续监视其行为！");
            }
        }else {

            System.out.println("普通乘客，继续地铁内部动态。");
        }
    }
}
